<div class="post">
  <p class="meta">
    <?php $categories = array(); foreach ($post->getCategories() as $category) : ?>
      <?php $categories[] = link_to($category->getName(), 'blog_by_category', array('category' => $category->getShortSlug())) ?>
    <?php endforeach ?>

    <?php echo __('Posted by %author%, on %date% in %categories%', array(
      '%author%' => $post->getAuthor()->getName(),
      '%date%' => format_date($post->getPublishedAt(), 'dddd dd MMMM yyyy'),
      '%categories%' => implode(', ', $categories)
    )) ?>
  </p>

  <?php if ($post->getSourceExcerpt()) : ?>
    <?php echo $post->getCachedExcerpt(ESC_RAW) ?>
    <?php if (!$showBody) : ?>
    <p class="post-infos">
      <?php $nbComments = $post->getCommentsCount(true) ?>
      <?php echo link_to(
        format_number_choice(
          '[0]No comment|[1]1 comment|(1,+Inf]%comments% comments',
          array('%comments%' => format_number($nbComments)),
          $nbComments
        ),
        'post_show',
        $post
      ) ?> 
    </p>
    <?php endif ?>
  <?php endif ?>

  <?php if ($showBody) : ?>
    <?php echo $post->getCachedContent(ESC_RAW) ?>
  <?php endif ?>
  
</div>